﻿package com.sgcc.nfc.lock.domain.model

/**
 * Mirrors the role type definition used by the backend.
 */
enum class RoleType(val value: Int) {
    SUPER_ADMIN(1),
    PROVINCE_ADMIN(2),
    CITY_ADMIN(3),
    COUNTY_ADMIN(4),
    OPERATIONS_CENTER_ADMIN(5),
    STATION_ADMIN(6),
    OPERATOR(7);

    companion object {
        fun fromValue(value: Int?): RoleType? = values().firstOrNull { it.value == value }
    }
}

